// 该文件专门用于创建整个应用的路由器
import VueRouter from 'vue-router'
//引入组件
import login from '../view/login.vue'
import Main from '../view/Main.vue'
import Bank from '../components/Bank.vue'
import Register from '../view/ztj/Register.vue'
import BacklogList from '../view/ztj/BacklogList'
import PersonalDataUpd from '../view/ztj/PersonalDataUpd'
import InspectionTask from '../view/myx/InspectionTask.vue'
import Pspoleinfo from '../view/cwm/Pspoleinfo.vue'


import psLineInfo from '../view/cwm/psLineInfo.vue'
import addLineInfo from '../view/cwm/addLineInfo.vue'
import modifyLineInfo from '../view/cwm/modifyLineInfo.vue'
import defetType from '../view/cwm/defetType.vue'
import addDefetInfo from '../view/cwm/addDefetInfo'
import defetLevelAfrim from '../view/cwm/defetLevelAfrim'
import defetLevelAffirm from '../view/cwm/defetLevelAffirm'

import addInspection from '../view/myx/addInspection.vue'
import UserManager from '../view/ztj/UserManager.vue'
import RoleManager from '../view/ztj/RoleManager.vue'
import RolePowerManager from '../view/ztj/RolePowerManager.vue'
import InfoInspection from '../view/myx/InfoInspection.vue'
import ExecuteInspectionTask from '../view/myx/ExecuteInspectionTask.vue'
import SystemConfig from '../view/ztj/SystemConfig.vue'
import ReceiptEntry from '../view/myx/ReceiptEntry.vue'
//SolvetaskRecord
/* import SoletaskRecord from '../view/ztj/SolvetaskRecord.vue' */
import updateInspection from '../view/myx/updateInspection.vue'
import Solvetask from '../view/myxTwo/Solvetask.vue'
import AddSolvetask from '../view/myxTwo/AddSolvetask.vue'
import UpdateSolvetask from '../view/myxTwo/UpdateSolvetask.vue'
import ExecuteSolvetask from '../view/myxTwo/ExecuteSolvetask.vue'
import InfoSolvetask from '../view/myxTwo/InfoSolvetask.vue'
import FlawInfo from '../view/myx/FlawInfo.vue'
import BlankingInfo from '../view/myxTwo/BlankingInfo.vue'
//创建并暴露一个路由器
export default new VueRouter({
	routes: [{
			path: '/',
			redirect: '/login'
		}, //默认
		{
			path: '/login',
			component: login
		},
		{
		path: '/Main',
			component: Main,
			children: [{
					path: '/',
					component: Bank
				}, //默认
				{
					path: '/Bank',
					component: Bank
				},
				{
					path: '/InspectionTask',
					component: InspectionTask
				}, {
					path: '/Pspoleinfo',
					component: Pspoleinfo
				},
				{
					path: '/psLineInfo',
					component: psLineInfo
				},
				{
					path: '/addLineInfo',
					component: addLineInfo
				}, {
					path: '/modifyLineInfo',
					component: modifyLineInfo
				}, {
					path: '/defetType',
					component: defetType
				}, {
					path: '/addDefetInfo',
					component: addDefetInfo
				}, 
				{
					path: '/defetLevelAffirm',
					component: defetLevelAffirm
				},
				{
					path: '/addInspection',
					component: addInspection
				},
				{
					path: '/InfoInspection',
					component: InfoInspection
				},
				{
					path: '/ExecuteInspectionTask',
					component: ExecuteInspectionTask
				},
				{
					path: '/ReceiptEntry',
					component: ReceiptEntry
				},
				{
					path: '/updateInspection',
					component: updateInspection
				},
				{
					path: '/Solvetask',
					component: Solvetask
				},

				{ //代办列表
					path: '/BacklogList',
					component: BacklogList
				},
				{ //个人信息修改
					path: '/PersonalDataUpd',
					component: PersonalDataUpd
				},
				{
					path: '/AddSolvetask',
					component: AddSolvetask
				},
				{
					path: '/UpdateSolvetask',
					component: UpdateSolvetask
				},
				{
					path: '/ExecuteSolvetask',
					component: ExecuteSolvetask
				},
				{
					path: "/InfoSolvetask",
					component: InfoSolvetask
				},
				{
					path: "/FlawInfo",
					component: FlawInfo
				},
				{ //RoleManager
					path: '/RoleManager',
					component: RoleManager
				},
				{
					path: '/addInspection',
					component: addInspection
				},
				{
					path: '/BlankingInfo',
					component: BlankingInfo

				},
				//角色权限管理
				{
					path: '/RolePowerManager',
					component: RolePowerManager
				},
				{ //系统配置
					path: '/SystemConfig',
					component: SystemConfig
				},/* 
				{ //消缺记录统计
					path: '/SolvetaskRecord',
					component: SolvetaskRecord
				}, */
				{ //UserManager
					path: '/UserManager',
					component: UserManager
				},
				{
					path: '/RolePowerManager',
					component: RolePowerManager
				},
				{
					path: '/SystemConfig',
					component: SystemConfig
				},{
							path:'/defetLevelAfrim',
							component:defetLevelAfrim
						}
					


			]
		}, { //注册
			path: '/Register',
			component: Register

		}
	]
})